package com.atguigu.thymeleaf.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

@Controller //转发到视图页面
public class HelloController {

    @GetMapping("/hello")
    public String hello(){
        return "hello";//thymeleaf会自动拼接前后缀  /templates/hello.html
    }
}
